]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
popupMenu: Center the labels in submenu items
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 18 Sep 2013 21:36:09 +0000 (17:36 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 19 Sep 2013 16:40:43 +0000 (12:40 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=708330

js/ui/popupMenu.js

index 3e57562d18a18bc56eff895f32b3a077f5496780..eeb777df5eabe3b72ced3557c43e048788901569 100644 (file)
@@ -948,14 +948,18 @@ const PopupSubMenuMenuItem = new Lang.Class({
             this.actor.add_child(this.icon);
         }
 
-        this.label = new St.Label({ text: text });
+        this.label = new St.Label({ text: text,
+                                    y_expand: true,
+                                    y_align: Clutter.ActorAlign.CENTER });
         this.actor.add_child(this.label);
         this.actor.label_actor = this.label;
 
         let expander = new St.Bin({ style_class: 'popup-menu-item-expander' });
         this.actor.add(expander, { expand: true });
 
-        this.status = new St.Label({ style_class: 'popup-status-menu-item' });
+        this.status = new St.Label({ style_class: 'popup-status-menu-item',
+                                     y_expand: true,
+                                     y_align: Clutter.ActorAlign.CENTER });
         this.actor.add_child(this.status);
 
         this._triangle = new St.Label({ text: '\u25B8',